/*
only 19 bits
*/
#include <stdio.h>
#include <stdbool.h>
int main(int argc, char const *argv[])
{
	unsigned long num;
	unsigned long div;
	bool isPrime;

	printf("Please input a value(enter a character for exit this function):\n");
	while(scanf("%lu",&num)==1)
	{
		for (div = 2, isPrime=true; (div*div) <= num; div++)
		{
			if (num%div==0)
			{
				printf("%lu can be div...ed by %lu and %lu\n", num, div, num/div);
				
				

				isPrime=false;
			}

		}
		if (isPrime==true)
		{
			printf("it is a prime.\n");
		}
		else
			printf("it is not a prime.\n");
		
		printf("Please input a value(enter a character for exit this function):\n");
	}
	printf("byebye\n");
	return 0;
}